package cn.wizzer.app.user.modules.models;

import cn.wizzer.framework.base.model.BaseModel;
import lombok.Data;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;
import org.nutz.integration.json4excel.annotation.J4EIgnore;
import org.nutz.json.JsonField;

import java.io.Serializable;

/**
 * 用户反馈
 */
@Data
@Table("user_feedback")
@Comment("用户反馈表")
public class UserFeedback extends BaseModel implements Serializable {
    @Column
    @Name
    @Comment("ID")
    @J4EIgnore
    @ColDefine(type = ColType.VARCHAR, width = 32)
    @PrevInsert(uu32 = true)
    private String id;


    @Column
    @Comment("反馈内容")
    @JsonField
    @ColDefine(type = ColType.VARCHAR, width = 256)
    private String content;

    @Column
    @Comment("邮箱")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    private String email;

    @Column
    @Comment("用户名")
    @ColDefine(type = ColType.VARCHAR, width = 20)
    private String name;
}
